package com.czhappy.huans.service.impl;

import com.czhappy.huans.dao.KaoqinDao;
import com.czhappy.huans.entity.Kaoqin;
import com.czhappy.huans.entity.User;
import com.czhappy.huans.service.KaoqinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Service
public class KaoqinServiceImpl implements KaoqinService {
	@Autowired
	private KaoqinDao kaoqinDao;


	@Override
	public List<User> queryUserNameList(int type) {
		Map<String,Object> map = new HashMap<>();
		map.put("type",type);
		return kaoqinDao.queryUserNameList(map);
	}

	@Override
	public List<Kaoqin> queryKaoqinListByName(String userName) {
		return kaoqinDao.queryKaoqinListByName(userName);
	}
}
